package com.haogu.service;

import com.baomidou.mybatisplus.core.conditions.interfaces.Func;
import com.haogu.entity.Function;
import com.haogu.entity.VFunction;

import java.util.List;

public interface FunctionService {
    List<Function> findByUserId(Integer id);

//    List<FunctionVO> findAll();

    List<Function> findTree(Integer parentId);
    List<Function> finAll();
    List<Function> findByRoleId(Integer id);
    List<VFunction> selectAllFunction(Integer page, Integer size);

    Integer selectCount();

    boolean insert(Function function);

    boolean delete(Integer id);
    Function selectFunctionById(Integer id);
    boolean update(Function function);
}
